﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;
using System.ComponentModel.DataAnnotations;


namespace KingRoad.EPM.PersonnelLogEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/1/12 11:34:50
    /// </summary> 
    [Serializable]
    [ModelMap("Plm_TestLog", new string[] { "Tl_ID" })]
    public class PlmTestlogInfo : BaseEntity
    {
        public PlmTestlogInfo()
        {

        }


        private string _tlId;
        /// <summary>
        /// 主键
        /// </summary>
        [ColumnMap("Tl_ID", System.Data.DbType.String)]
        public string Tl_ID
        {
            get { return _tlId; }
            set
            {
                if (object.Equals(this._tlId, value) != true)
                {
                    this._tlId = value;
                    this.RaisePropertyChanged("Tl_ID");
                }
            }
        }


        private int _tlUserid;
        /// <summary>
        /// 操作人ID
        /// </summary>
        [ColumnMap("Tl_UserID", System.Data.DbType.Int32)]
        public int Tl_UserID
        {
            get { return _tlUserid; }
            set
            {
                if (object.Equals(this._tlUserid, value) != true)
                {
                    this._tlUserid = value;
                    this.RaisePropertyChanged("Tl_UserID");
                }
            }
        }


        private string _tlUsername;
        /// <summary>
        /// 操作人名称
        /// </summary>
        [ColumnMap("Tl_UserName", System.Data.DbType.String)]
        public string Tl_UserName
        {
            get { return _tlUsername; }
            set
            {
                if (object.Equals(this._tlUsername, value) != true)
                {
                    this._tlUsername = value;
                    this.RaisePropertyChanged("Tl_UserName");
                }
            }
        }


        private DateTime _tlUpdatetime;
        /// <summary>
        /// 操作日期
        /// </summary>
        [ColumnMap("Tl_UpdateTime", System.Data.DbType.DateTime)]
        public DateTime Tl_UpdateTime
        {
            get { return _tlUpdatetime; }
            set
            {
                if (object.Equals(this._tlUpdatetime, value) != true)
                {
                    this._tlUpdatetime = value;
                    this.RaisePropertyChanged("Tl_UpdateTime");
                }
            }
        }


        private string _tlSection;
        /// <summary>
        /// 标段
        /// </summary>
        [ColumnMap("Tl_Section", System.Data.DbType.String)]
        public string Tl_Section
        {
            get { return _tlSection; }
            set
            {
                if (object.Equals(this._tlSection, value) != true)
                {
                    this._tlSection = value;
                    this.RaisePropertyChanged("Tl_Section");
                }
            }
        }


        private string _tlContractnumber;
        /// <summary>
        /// 合同号
        /// </summary>
        [Required(ErrorMessage = "*")]
        [StringLength(20, ErrorMessage = "字符长度超出范围")]
        [ColumnMap("Tl_ContractNumber", System.Data.DbType.String)]
        public string Tl_ContractNumber
        {
            get { return _tlContractnumber; }
            set
            {
                if (object.Equals(this._tlContractnumber, value) != true)
                {
                    this._tlContractnumber = value;
                    this.RaisePropertyChanged("Tl_ContractNumber");
                }
            }
        }


        private string _tlNumber;
        /// <summary>
        /// 编号
        /// </summary>
        [Required(ErrorMessage = "*")]
        [StringLength(20, ErrorMessage = "字符长度超出范围")]        
        [ColumnMap("Tl_Number", System.Data.DbType.String)]
        public string Tl_Number
        {
            get { return _tlNumber; }
            set
            {
                if (object.Equals(this._tlNumber, value) != true)
                {
                    this._tlNumber = value;
                    this.RaisePropertyChanged("Tl_Number");
                }
            }
        }


        private DateTime _tlRecorddate;
        /// <summary>
        /// 记录日期
        /// </summary>
        [ColumnMap("Tl_RecordDate", System.Data.DbType.DateTime)]
        public DateTime Tl_RecordDate
        {
            get { return _tlRecorddate; }
            set
            {
                if (object.Equals(this._tlRecorddate, value) != true)
                {
                    this._tlRecorddate = value;
                    this.RaisePropertyChanged("Tl_RecordDate");
                }
            }
        }


        private string _tlRecorduser;
        /// <summary>
        /// 记录人
        /// </summary>

        [Required(ErrorMessage = "*")]
        [StringLength(20, ErrorMessage = "字符长度超出范围")]
        [ColumnMap("Tl_RecordUser", System.Data.DbType.String)]
        public string Tl_RecordUser
        {
            get { return _tlRecorduser; }
            set
            {
                if (object.Equals(this._tlRecorduser, value) != true)
                {
                    this._tlRecorduser = value;
                    this.RaisePropertyChanged("Tl_RecordUser");
                }
            }
        }


        private string _tlProfessionalposition;
        /// <summary>
        /// 专业职位
        /// </summary>
        [Required(ErrorMessage = "*")]
        [StringLength(20, ErrorMessage = "字符长度超出范围")]
        [ColumnMap("Tl_ProfessionalPosition", System.Data.DbType.String)]
        public string Tl_ProfessionalPosition
        {
            get { return _tlProfessionalposition; }
            set
            {
                if (object.Equals(this._tlProfessionalposition, value) != true)
                {
                    this._tlProfessionalposition = value;
                    this.RaisePropertyChanged("Tl_ProfessionalPosition");
                }
            }
        }


        private string _tlTestunit;
        /// <summary>
        /// 检测单位
        /// </summary>
        [Required(ErrorMessage = "*")]
        [StringLength(50, ErrorMessage = "字符长度超出范围")]
        [ColumnMap("Tl_TestUnit", System.Data.DbType.String)]
        public string Tl_TestUnit
        {
            get { return _tlTestunit; }
            set
            {
                if (object.Equals(this._tlTestunit, value) != true)
                {
                    this._tlTestunit = value;
                    this.RaisePropertyChanged("Tl_TestUnit");
                }
            }
        }


        private string _tlTestrange;
        /// <summary>
        /// 检测范围
        /// </summary>
        [ColumnMap("Tl_TestRange", System.Data.DbType.String)]
        public string Tl_TestRange
        {
            get { return _tlTestrange; }
            set
            {
                if (object.Equals(this._tlTestrange, value) != true)
                {
                    this._tlTestrange = value;
                    this.RaisePropertyChanged("Tl_TestRange");
                }
            }
        }


        private string _tlAuditman;
        /// <summary>
        /// 审核人
        /// </summary>
        [ColumnMap("Tl_AuditMan", System.Data.DbType.String)]
        public string Tl_AuditMan
        {
            get { return _tlAuditman; }
            set
            {
                if (object.Equals(this._tlAuditman, value) != true)
                {
                    this._tlAuditman = value;
                    this.RaisePropertyChanged("Tl_AuditMan");
                }
            }
        }


        private string _tlWeather;
        /// <summary>
        /// 天气情况
        /// </summary>
        [ColumnMap("Tl_Weather", System.Data.DbType.String)]
        public string Tl_Weather
        {
            get { return _tlWeather; }
            set
            {
                if (object.Equals(this._tlWeather, value) != true)
                {
                    this._tlWeather = value;
                    this.RaisePropertyChanged("Tl_Weather");
                }
            }
        }


        private string _tlTestcontent;
        /// <summary>
        /// 主要试验检测工作内容
        /// </summary>
        [ColumnMap("Tl_TestContent", System.Data.DbType.String)]
        public string Tl_TestContent
        {
            get { return _tlTestcontent; }
            set
            {
                if (object.Equals(this._tlTestcontent, value) != true)
                {
                    this._tlTestcontent = value;
                    this.RaisePropertyChanged("Tl_TestContent");
                }
            }
        }


        private string _tlProblemsdispose;
        /// <summary>
        /// 问题及处理情况
        /// </summary>
        [ColumnMap("Tl_ProblemsDispose", System.Data.DbType.String)]
        public string Tl_ProblemsDispose
        {
            get { return _tlProblemsdispose; }
            set
            {
                if (object.Equals(this._tlProblemsdispose, value) != true)
                {
                    this._tlProblemsdispose = value;
                    this.RaisePropertyChanged("Tl_ProblemsDispose");
                }
            }
        }

        private int _assist_ID;
        /// <summary>
        /// 附件id
        /// </summary>
        [ColumnMap("Assist_ID", System.Data.DbType.Int32)]
        public int Assist_ID
        {
            get { return _assist_ID; }
            set
            {
                if (object.Equals(this._assist_ID, value) != true)
                {
                    this._assist_ID = value;
                    this.RaisePropertyChanged("Assist_ID");
                }
            }
        }
    }
}


